package com.java.exer1;

/**
 * @author shkstart
 * @create 2021-01-13 11:28
 */
public class SortMethod {
    public static void sort(SortInter[] sortInters) {
        for (int i = 0; i < sortInters.length - 1; i++) {
            for (int j = 0; j < sortInters.length - 1 - i; j++) {
                if (sortInters[j].compareTo(sortInters[j + 1]) > 0) {
                    SortInter t = sortInters[j];
                    sortInters[j] = sortInters[j + 1];
                    sortInters[j + 1] = t;
                }

            }

        }

    }
}
